<div class="right-panel">
      <h3><?php echo __('ROLE_LISTING');?></h3>
      <div class="content-outer">
        <div class="top-btns">
             <?php

	     echo $this->Form->create("",array("method"=>"POST","id"=>"searchUnit"));?>
     <table width="100%" cellpadding="2" cellspacing="2" border="0">
	<tr>
		<td width="12%" align="right"><b><?php echo __('ROLE_SEARCH')?>:<b></td>
		<td  align="left">
			<?php echo $this->Form->input('UserPost.search_criteria', array('maxlength'=>'100','class'=>'text-input normal-wdh required','label'=>false,'div'=>false)); ?>
		</td>
               
	    	<td align="left" width="45%">
                    <div class="actionbtns">
			<?php
                        echo $this->Js->submit(__('SEARCH',true), array('update' => '#divUpdate', "class"=>"button",'label'=>false, 'div' => false, 'before' => $this->Js->get('#divUpdate')->effect('fadeOut'), 'success' => $this->Js->get('#divUpdate')->effect('fadeIn')));
                        ?><div class="buttonEnding"></div>
                </div>
	    	</td>
                <td align="left" width="20%">
                    <div class="actionbtns">
			<?php
			if(!$roleId){//No checks for superadmin
			      echo $this->Html->link( __('CREATE_ROLE',true), array('controller'=>'users', 'action'=>'addrole'), array("class"=>"button",'label'=>false));
			}else{
			      if($showUserRoleAddURL){
				  echo $this->Html->link( __('CREATE_ROLE',true), array('controller'=>'users', 'action'=>'addrole'), array("class"=>"button",'label'=>false));
			      }
			}
			
			 ?>
                         <div class="buttonEnding"></div>
                    </div>
                </td>
	</tr>
    </table>
    <?php echo $this->Form->end();?>
        </div>
        
          <!-- Div update starts here -->
          <div id="divUpdate">
          <?php echo $this->element('users/roles');?>
          </div>
          <!-- Div update ends here -->
      </div>
      <!--content-outer End-->
    </div>